package top.kaoshanji.p1ch09a;

/**
 * 代码清单-p1ch09a-195页a：继承与向上转型
 * author kaoshanji
 * ^_^
 * create time 2025/3/9 18:17
 */
public class Music {

    public static void tune(Instrument i) {
        i.play(Note.MIDDLE_C);
    }

    public static void main(String[] args) {
        Wind flute = new Wind();
        tune(flute); // 向上转型
    }


}
